package cn.dm.client;
import cn.dm.pojo.DmImage;

import cn.dm.fallback.DmImageClientFallBack;
import java.util.List;
import java.util.Map;

import cn.dm.config.DmConfiguration;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RequestBody;
/**
* Created by dm
*/
@FeignClient(name = "dm-base-provider", configuration = DmConfiguration.class, fallback = DmImageClientFallBack.class)
public interface RestDmImageClient {

@RequestMapping(value = "/getDmImageById",method = RequestMethod.POST)
public DmImage getDmImageById(@RequestParam("id") Long id)throws Exception;

@RequestMapping(value = "/getDmImageListByMap",method = RequestMethod.POST)
public List<DmImage>getDmImageListByMap(@RequestParam Map<String, Object> param)throws Exception;

@RequestMapping(value = "/getDmImageCountByMap",method = RequestMethod.POST)
public Integer getDmImageCountByMap(@RequestParam Map<String, Object> param)throws Exception;

@RequestMapping(value = "/qdtxAddDmImage",method = RequestMethod.POST)
public Integer qdtxAddDmImage(@RequestBody DmImage dmImage)throws Exception;

@RequestMapping(value = "/qdtxModifyDmImage",method = RequestMethod.POST)
public Integer qdtxModifyDmImage(@RequestBody DmImage dmImage)throws Exception;
@RequestMapping(value = "/queryDmImageList",method = RequestMethod.POST)
public List<DmImage> queryDmImageList(Long id,Integer type,Integer category) throws Exception;
}
